<template>
  <a-modal
    :visible="visible"
    title="短信模板详情"
    :confirm-loading="isSubmiting"
    @ok="handleSubmit"
    @cancel="handleClose"
  >
    <a-spin :spinning="spinning"> </a-spin>
  </a-modal>
</template>

<script>
/**
 *Parser
 *@Author
 *@Version
 *@property
 *@event
 */
export default {
  props: {
    propsData: {
      type: Object,
      default: () => {}
    },
    visible: {
      type: Boolean,
      default: false
    }
  },
  watch: {
    visible (n) {
      if (n) {
        this.fetchData()
      }
    }
  },
  data () {
    return {
      isSubmiting: false,
      spinning: false
    }
  },
  methods: {
    fetchData () {},
    handleSubmit () {},
    handleClose () {
      this.$emit('update:visible', false)
    }
  }
}
</script>
<style scoped></style>
